import javax.swing.JScrollPane;

class MyJScrollPane extends JScrollPane 
{
  private static final long serialVersionUID = 1L;
  private int id;
  private MyJTextPane textpane;
  
  public MyJScrollPane(MyJTextPane textpane, int id)
  {
    super(textpane);
    System.out.println("MyJScrollPane, MyJScrollPane(MyJTextPane textpane, int id)");
    this.id = id;
    this.textpane = textpane;
  }

  public int getId()
  {
	System.out.println("MyJScrollPane, getId()");
    return id;
  }
  
  public MyJTextPane getTextPane() {
	System.out.println("MyJScrollPane, getTextPane()");
	return textpane;
  }
  
  public void finalize() throws Throwable
  {
	System.out.println("MyJScrollPane, finalize()");
  }
  
  public String toString()
  {
	System.out.println("MyJScrollPane, toString()");
	return super.toString();
  }
}